<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>查单词</title>
	</head>
	<body>
		<input type="text" placeholder="请输入您需要查的单词" id="content"/>
		<input type="button" value="查询" onclick="SearchWord()"/>
		<script>
		var chineses = ["语文","数学","英语"];
		var englishes = ["chinese","math","english"];
		for(var i=1;i<englishes.length;i++){
			var word = content.value;
			var isFind = false;
			if(englishes[i] == word){
				alert(chineses[i]);
				isFind;
			}
		}</script>
	</body>
</html>
